home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhh((((3333xxxx)))) ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhh((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- cpusetAttach - attach the current process to a cpuset
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ccccppppuuuusssseeeetttt....hhhh>>>>
-
- iiiinnnntttt ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhh((((cccchhhhaaaarrrr ****qqqqnnnnaaaammmmeeee))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _c_p_u_s_e_t_A_t_t_a_c_h function is used to attach the current process to the
- cpuset identified by qname. Every cpuset queue has a file that defines
- access permissions to the queue. The execute permissions for that file
- will determine if a process owned by a specific user can attach a process
- to the cpuset queue.
-
- The qqqqnnnnaaaammmmeeee argument is the name of the cpuset to which the current process
- should be attached.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- This example attaches the current process to a cpuset queue named
- mpi_set.
-
- char *qname = "mpi_set";
-
- /* Attach to cpuset, if error - print error & exit */
- if (!cpusetAttach(qname)) {
- perror("cpusetAttach");
- exit(1);
- }
-
-
- NNNNOOOOTTTTEEEESSSS
- _c_p_u_s_e_t_A_t_t_a_c_h is found in the library "libcpuset.so", and will be loaded
- if the option _----_llll_cccc_pppp_uuuu_ssss_eeee_tttt is used with _cccc_cccc(1) or _llll_dddd(1).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- cpuset(1), cpusetCreate(3x), cpuset(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If successful, _c_p_u_s_e_t_A_t_t_a_c_h returns a 1. If _c_p_u_s_e_t_A_t_t_a_c_h fails, it
- returns the value 0 and eeeerrrrrrrrnnnnoooo is set to indicate the error. The possible
- values for eeeerrrrrrrrnnnnoooo are the same as those used by _s_y_s_m_p(2).
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-